package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("shopping_carts")
public class ShoppingCart {
    
    @TableId(value = "cart_id", type = IdType.AUTO)
    private Integer cartId;
    
    @TableField("user_id")
    private Integer userId;
    
    @TableField("product_id")
    private Integer productId;
    
    @TableField("quantity")
    private Integer quantity;
    
    @TableField("created_at")
    private LocalDateTime createdAt;
    
    @TableField("updated_at")
    private LocalDateTime updatedAt;
    
    @TableField(exist = false)
    private Product product;
} 